//C11:ep11_4.c: pointer to struct -3.
#include <stdio.h>
#include <string.h>
struct student_st
{
    int num;
    char name[20];
    char sex;
    int  age;
};

int main() {
   
   struct student_st stu[3] = 
   {
        {10101,"Li Lin",'M',18},
        {10102,"Zhang Fun",'M',19},
        {10104,"Wang Min", 'F',20}
   };
   
   struct student_st *p;
   printf("No.\tName\tsex\tage\n");
   for(p = stu; p < stu + 3; p++)
   {
       printf("%5d %-20s %2c %4d\n",p->num,p->name,p->sex,p->age);
   }
    
    printf("\nhello\n");
}